<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
    xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head th:replace="common::commonHeader(~{::title},~{},~{::style})">
<title th:text="#{menu-mgt}">menu-mgt</title>
<style type="text/css">
        body{
            background: url([[@{/img/1.jpg}]]);
            animation-name:myfirst;
            animation-duration:6s;
            /*变换时间*/
            animation-delay:0.5s;
            /*动画开始时间*/
            animation-iteration-count:infinite;
            /*下一周期循环播放*/
            animation-play-state:running;
            /*动画开始运行*/
        }
        @keyframes myfirst
        {
            0%   {background:url([[@{/img/1.jpg}]]);}
            34%  {background:url([[@{/img/2.jpg}]]);}
            67%  {background:url([[@{/img/3.jpg}]]);}
            100% {background:url([[@{/img/1.jpg}]]);}
        }
    </style>
</head>
<body class="container">
		<div class="row" style="margin-top: 20px">
			<div
				class="col-xs-12 col-sm-8 col-md-6 col-sm-offset-2 col-md-offset-3">
				<form th:action="@{/login}" method="post">
					<fieldset>
						<h1>Please login</h1>
						<div th:if="${param.error}">
							<div class="alert alert-danger">
								<i class="fa fa-info-circle"></i> Failed to login. Reason: <span
									th:if="${session.SPRING_SECURITY_LAST_EXCEPTION != null}"
									th:text="${session.SPRING_SECURITY_LAST_EXCEPTION.message}"></span>
							</div>
						</div>
						<div th:if="${param.logout}">
							<div class="alert alert-info">
								<i class="fa fa-info-circle"></i> You have been logged out.
							</div>
						</div>
	
						<div class="form-group">
							<input type="text" name="username" id="username"
								class="form-control input-lg" placeholder="用户名" autofocus />
						</div>
						<div class="form-group">
							<input type="password" name="password" id="password"
								class="form-control input-lg" placeholder="密码" />
						</div>
	
						<div>
							<input type="submit" class="btn btn-lg btn-primary btn-block"
								value="登录" />
						    <a th:href="@{/index}">Back to Home Page</a>
						</div>
					</fieldset>
				</form>
			</div>
		</div>
    <footer th:replace="common::commonFooter(~{})">
    </footer>
</body>
</html>